package com.pb.metadata.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


@Mapper
@Repository
public interface FilterTreeManMapper {

    /**
     * 读取参数应用数据
     *
     * @return
     */
    List<Map<String, Object>> select(Map<String, Object> param);

    List<Map<String, Object>> selMetaDataTree(Map<String, Object> map);

    String selUserCorp(Map<String, Object> paramMap);

    List<Map<String, Object>> selAllTree(Map<String, Object> map);

    /**
     * 根据法人查询维度信息
     * @param param 参数信息
     * @return Result
     */
    List<Map<String, Object>> selDimType(Map<String, Object> param);

    List<Map<String, Object>> selNodeList(Map<String, Object> map);

    void insertData(Map<String, Object> map);

    void updateData(Map<String, Object> map);

    void delData(String treeId);

    void delNode(String treeId);

    // List<Map<String, Object>> selRuleFilter(Map<String, Object> map);

    void insertNodeList(Map<String, Object> map);
}
